#import "head.h"

@interface SpriteGameBridge : CCSprite
{
	int point_;
	bool flagCover_;
	bool flagInvincible_;

	CGPoint startPos_;
	CGPoint endPos_;

	CCProgressTimer *bridge_;
	CCProgressTimer *bridgeRed_;
	CCSprite *bridgeBack_;
	CCSprite *cloud_;
	CCSprite *boy_;
	CCSprite *girl_;
	CCSprite *effectCover_;
	CCSprite *effectInvincible_;

	CGPoint arcLeft_;
	CGPoint arcRight_;
	CGPoint arcTop_;
	CGPoint arcCenter_;
	CGSize bridgeSize_;
}

@property (nonatomic, readonly) int point;
@property (nonatomic, readonly) bool flagCover;
@property (nonatomic, readonly) bool flagInvincible;

- (id)initSpriteGameBridge;
- (void)tickInvincibleOver:(ccTime)Time;
- (void)tickSuccess:(ccTime)Time;

- (void)MissionStart;
- (void)Pause;
- (void)Resume;

- (CGPoint)GetBridgeHeadPosition;
- (CGPoint)GetBridgePositionByX:(float)X;
- (CGPoint)GetArcPoint:(float)X;

- (void)AddPoint:(int)Point;
- (void)DecPoint:(int)Point;

- (void)PlayEffectCover;

- (void)ActionMissionStart;
- (void)ActionCover;
- (void)ActionInvincible:(float)Time;
- (void)ActionBridgeAdd:(float)Time;
- (void)ActionBridgeDec:(float)Time;
- (void)ActionSuccess;

- (void)CallBackActionBirdgeDecOver:(id)Sender;
- (void)CallBackActionSuccessOver:(id)Sender;

@end